package com.cloud.demo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-hi") // name:远程服务名，及spring.application.name配置的名称
public interface HiRemote {

    @RequestMapping(value = "/hi")
    public String hello(@RequestParam(value = "name") String name);

}
